/*
 * 系统配置文件
 * 包含所有系统配置参数
 */

#ifndef CONFIG_H
#define CONFIG_H

// WiFi配置
#define WIFI_SSID "your_wifi_ssid"
#define WIFI_PASSWORD "your_wifi_password"

// MQTT配置
#define MQTT_SERVER "your_mqtt_server"
#define MQTT_PORT 1883

// 服务器配置
#define SERVER_URL "http://your_server_ip:5000"

// 传感器引脚配置
#define DHT_PIN 4
#define SOIL_MOISTURE_PIN 34
#define BUZZER_PIN 18

// 传感器类型配置
#define DHT_TYPE DHT22

// 显示配置
#define OLED_ADDRESS 0x3C
#define OLED_WIDTH 128
#define OLED_HEIGHT 64

// 摄像头配置
#define CAMERA_MODEL_AI_THINKER

// 数据发送间隔（毫秒）
#define SENSOR_SEND_INTERVAL 5000
#define CAMERA_CAPTURE_INTERVAL 1800000

// 阈值设置
#define TEMP_THRESHOLD_HIGH 35.0
#define TEMP_THRESHOLD_LOW 10.0
#define HUMIDITY_THRESHOLD_HIGH 80.0
#define HUMIDITY_THRESHOLD_LOW 40.0
#define SOIL_MOISTURE_THRESHOLD_LOW 300
#define LIGHT_THRESHOLD_LOW 1000
#define CO2_THRESHOLD_HIGH 1200.0

#endif